<?php

namespace App\Http\Controllers\App;

use App\Http\Controllers\Controller;
use App\Http\Controllers\FlowsettingController;
use Illuminate\Http\Request;

class FlowController extends Controller
{
    private $setting;
    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {   
        $this->setting = new FlowsettingController;
    }
    //设置流程
    public function flow(Request $request)
    {   
        $res = $this->setting->setFlows($request);
        return $res;
    }
    //设置步骤
    public function process(Request $request)
    {   
        $res = $this->setting->setProcess($request);
        return $res;
    }
    //设置结果
    public function conclusion(Request $request)
    {   
        $res = $this->setting->setConclusions($request);
        return $res;
    }
    //设置原因
    public function reason(Request $request)
    {   
        $res = $this->setting->setReasons($request);
        return $res;
    }
    //查询自定义设置
    public function get(Request $request)
    {   
        $res = $this->setting->setGet($request);
        return $res;
    }
    //查询自定义设置
    public function update($id, $type, Request $request)
    {   
        $res = $this->setting->setUpdate($id,$type,$request);
        return $res;
    }
    //启动流程
    public function state(Request $request)
    {   
        $res = $this->setting->setState($request);
        return $res;
    }
    
}
